home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / csackpacct.z / csackpacct
Encoding:
Text File  |  2002-10-03  |  7.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ccccssssaaaacccckkkkppppaaaacccccccctttt((((1111MMMM))))                                                  ccccssssaaaacccckkkkppppaaaacccccccctttt((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      csackpacct - checks the size of the process accounting file
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_aaaa_cccc_cccc_tttt_////_cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt [_b_l_o_c_k_s]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      The _cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt script checks the size of the CSA process accounting file
  16.      _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_aaaa_cccc_cccc_tttt_////_dddd_aaaa_yyyy_////_pppp_aaaa_cccc_cccc_tttt and checks the amount of free space on the
  17.      filesystem containing the _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_aaaa_cccc_cccc_tttt directory.  If the size of the
  18.      _pppp_aaaa_cccc_cccc_tttt file exceeds 4000 blocks (default) or exceeds the specified number
  19.      of _bbbb_llll_oooo_cccc_kkkk_ssss, _cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt starts a new accounting file by invoking the
  20.      _cccc_ssss_aaaa_ssss_wwww_iiii_tttt_cccc_hhhh(1M) command.  When accounting is enabled, the _cccc_ssss_aaaa_ssss_wwww_iiii_tttt_cccc_hhhh command
  21.      is called with the _----_cccc _oooo_nnnn option by default.  You can modify the behavior
  22.      of the _cccc_ssss_aaaa_ssss_wwww_iiii_tttt_cccc_hhhh command to enable additional daemon or continuation
  23.      record types and set threshold values by setting the applicable values in
  24.      the _////_eeee_tttt_cccc_////_cccc_ssss_aaaa_...._cccc_oooo_nnnn_ffff file.  For additional information, see the
  25.      _cccc_ssss_aaaa_ssss_wwww_iiii_tttt_cccc_hhhh(1M) man page.
  26.  
  27.      _AAAA_CCCC_CCCC_TTTT______FFFF_SSSS is a parameter which defines the filesystem on which
  28.      _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_aaaa_cccc_cccc_tttt resides and is defined in the accounting configuration file
  29.      _////_eeee_tttt_cccc_////_cccc_ssss_aaaa_...._cccc_oooo_nnnn_ffff.  The _MMMM_IIII_NNNN______BBBB_LLLL_KKKK_SSSS parameter also is defined there.
  30.  
  31.      _cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt also ensures that the _AAAA_CCCC_CCCC_TTTT______FFFF_SSSS filesystem contains at least
  32.      _MMMM_IIII_NNNN______BBBB_LLLL_KKKK_SSSS free blocks.  If there is not this much free space, _cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt
  33.      turns off CSA accounting by invoking _cccc_ssss_aaaa_ssss_wwww_iiii_tttt_cccc_hhhh(1M) with the _hhhh_aaaa_llll_tttt operand.
  34.      _cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt calls _cccc_ssss_aaaa_ssss_wwww_iiii_tttt_cccc_hhhh(1M) with the _oooo_nnnn operand to re-enable process
  35.      accounting when at least _MMMM_IIII_NNNN______BBBB_LLLL_KKKK_SSSS free blocks are available.
  36.  
  37.      This feature is sensitive to the frequency at which _cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt is
  38.      executed.  You should run _cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt periodically using the _cccc_rrrr_oooo_nnnn(1M)
  39.      command.
  40.  
  41.      The _cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt script accepts the following operand:
  42.  
  43.      _b_l_o_c_k_s    Specifies the maximum size (in blocks) to which the CSA process
  44.                accounting file can grow before it is switched.  The default is
  45.                4000 blocks.
  46.  
  47.      In the released template of the accounting configuration file,
  48.      _////_eeee_tttt_cccc_////_cccc_ssss_aaaa_...._cccc_oooo_nnnn_ffff, _AAAA_CCCC_CCCC_TTTT______FFFF_SSSS is set to _////_uuuu_ssss_rrrr.  If this is not correct for your
  49.      system, you must define _AAAA_CCCC_CCCC_TTTT______FFFF_SSSS properly in _////_eeee_tttt_cccc_////_cccc_ssss_aaaa_...._cccc_oooo_nnnn_ffff.
  50.  
  51. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  52.      The following example is a suggested entry for the
  53.      _////_uuuu_ssss_rrrr_////_ssss_pppp_oooo_oooo_llll_////_cccc_rrrr_oooo_nnnn_////_cccc_rrrr_oooo_nnnn_tttt_aaaa_bbbb_ssss_////_rrrr_oooo_oooo_tttt file so that _cccc_rrrr_oooo_nnnn(1M) automatically runs
  54.      _cccc_ssss_aaaa_cccc_kkkk_pppp_aaaa_cccc_cccc_tttt on the hour:
  55.  
  56.           5 * *  * 1-6  if /etc/chkconfig csaacct; then /usr/lib/acct/csackpacct; fi
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ccccssssaaaacccckkkkppppaaaacccccccctttt((((1111MMMM))))                                                  ccccssssaaaacccckkkkppppaaaacccccccctttt((((1111MMMM))))
  71.  
  72.  
  73.  
  74. FFFFIIIILLLLEEEESSSS
  75.      _////_eeee_tttt_cccc_////_cccc_ssss_aaaa_...._cccc_oooo_nnnn_ffff                           CSA configuration file
  76.  
  77.      _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_aaaa_cccc_cccc_tttt_////_dddd_aaaa_yyyy_////_pppp_aaaa_cccc_cccc_tttt_****                CSA process accounting files
  78.  
  79.      _////_uuuu_ssss_rrrr_////_ssss_pppp_oooo_oooo_llll_////_cccc_rrrr_oooo_nnnn_////_cccc_rrrr_oooo_nnnn_tttt_aaaa_bbbb_ssss_////_rrrr_oooo_oooo_tttt           root _cccc_rrrr_oooo_nnnn_tttt_aaaa_bbbb(1) file
  80.  
  81. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  82.      cron(1M), crontab(1), csaswitch(1M).
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.